﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tomahawk.Runtime.Debug.Exceptions;
using System.Xml.Serialization;

namespace Tomahawk.Runtime.Logic.UI
{
    /// <summary>
    /// Base class for all UI objects
    /// </summary>
    public class XUIObject : XObject
    {
        #region "Identification"

        /// <summary>
        /// This identifies the screen object control.
        /// The name must be unique within the UIScene.
        /// </summary>
        [XmlAttribute("uiname")]
        public string UIName;

        #endregion

        #region "Exceptions"

        /// <summary>
        /// Base class for all UI related exceptions
        /// </summary>
        public class UIBaseException : XEngineException
        {
            public UIBaseException(ExceptionSeverity severity, string msg, Exception inner) : base(severity, msg, inner) { }
        }

        #endregion
    }
}
